import request from '@/utils/request'

export function listAllRole() {
  return request({
    url: '/sys/v1/role/listAll',
    method: 'get'
  })
}

export function modifyRole(data) {
  return request({
    url: 'sys/v1/role/modify',
    method: 'post',
    data
  })
}

export function addRole(data) {
  return request({
    url: 'sys/v1/role/add',
    method: 'post',
    data
  })
}


export function addResourceForRole(data) {
  return request({
    url: 'sys/v1/role/addResourceForRole',
    method: 'post',
    data
  })
}
